package com.woniu.vo;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class CompanyPositionSort implements Comparable<CompanyPositionSort>{
    private Integer positionId;
    private Integer visitCount;
    private String statusc;


    @Override
    public int compareTo(CompanyPositionSort o) {
        if(!"平台推送".equals(o.getStatusc())&&"平台推送".equals(this.getStatusc())){
            return 1;
        }else if("平台推送".equals(o.getStatusc())&&!"平台推送".equals(this.getStatusc())){
            return -1;
        }else{
            return o.visitCount-this.visitCount;
        }
    }


}
